
import android.app.Application;
import android.content.Context;
import android.content.res.AssetManager;

import a.a.a.SU;

public class ShellApplication extends Application {
    static { System.loadLibrary("shell"); }

    private native void nativeInit(Context context, AssetManager assetManager, String jar, String dd, String ll);

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        nativeInit(this, getAssets(), "SRC_APK", getDir("DEX_DIR", MODE_PRIVATE).getAbsolutePath(),
                getDir("LIB_DIR", MODE_PRIVATE).getAbsolutePath());
    }

    @Override
    public void onCreate() {
        super.onCreate();
        SU.appCreate(appClassName);
    }

    void test(float a, int b) {
        float c = a + b;
    }

}